package kr.co.nowgugudan;

import android.app.Activity;
import android.app.TabActivity;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.text.Editable;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.EditText;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;
import android.widget.TextView;
import android.widget.Toast;

public class GugudanBase extends TabActivity {
	 TabHost mTab;
	  
	    public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        TabHost tabHost = getTabHost();
	  
	        Drawable icon=getResources().getDrawable(R.drawable.propose);
	        Drawable icon2=getResources().getDrawable(R.drawable.prin1);
	        Drawable icon3=getResources().getDrawable(R.drawable.prin2);
	        Intent int1=new Intent(this,kr.co.nowgugudan.tab.Tabbase1.class);
	        int1.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
	        tabHost.addTab(tabHost.newTabSpec("tag")
	        		.setIndicator("",icon)
	        		.setContent(int1));
	        
	        Intent int2=new Intent(this,kr.co.nowgugudan.tab.Tabbase2.class);
	        int1.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
	        tabHost.addTab(tabHost.newTabSpec("tag")
	        		.setIndicator("",icon2)
	        		.setContent(int2));
	        
	        Intent int3=new Intent(this,kr.co.nowgugudan.tab.Tabbase3.class);
	        int1.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
	        tabHost.addTab(tabHost.newTabSpec("tag")
	        		.setIndicator("",icon3)
	        		.setContent(int3));
	    }
}